package day16.晚间练习.组播;

import java.io.IOException;
import java.net.*;

public class SendDemo {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds=new DatagramSocket();
        byte[] bytes="你好啊，我来了".getBytes();
        DatagramPacket dp=new DatagramPacket(bytes,bytes.length, InetAddress.getByName("192.168.23.127"),10001);
        ds.send(dp);
        ds.close();
    }
}
